<?php
	include_once 'autoload.php';
	

	$arr = array();
	
	try {
		$arr['success'] = 'yes';
		
		$id = $_REQUEST['first']; 
		$id2 = $_REQUEST['second']; 
		
		$service = new Service();
		$service->switchSequenceAlbums($id, $id2);
	}
	catch(Exception $e){
		$arr['error'] = 'error: ' . $e->getMessage();
	}
	
	echo json_encode($arr);
?>